<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - GREUtils.Dialog</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/GREUtils.html">GREUtils</a></li>
	
	<li><a href="../symbols/GREUtils.Charset.html">GREUtils.Charset</a></li>
	
	<li><a href="../symbols/GREUtils.ControllerAdapter.html">GREUtils.ControllerAdapter</a></li>
	
	<li><a href="../symbols/GREUtils.CryptoHash.html">GREUtils.CryptoHash</a></li>
	
	<li><a href="../symbols/GREUtils.Dialog.html">GREUtils.Dialog</a></li>
	
	<li><a href="../symbols/GREUtils.Dir.html">GREUtils.Dir</a></li>
	
	<li><a href="../symbols/GREUtils.File.html">GREUtils.File</a></li>
	
	<li><a href="../symbols/GREUtils.JSON.html">GREUtils.JSON</a></li>
	
	<li><a href="../symbols/GREUtils.Pref.html">GREUtils.Pref</a></li>
	
	<li><a href="../symbols/GREUtils.Sound.html">GREUtils.Sound</a></li>
	
	<li><a href="../symbols/GREUtils.Thread.html">GREUtils.Thread</a></li>
	
	<li><a href="../symbols/GREUtils.Thread.CallbackRunnableAdapter.html">GREUtils.Thread.CallbackRunnableAdapter</a></li>
	
	<li><a href="../symbols/GREUtils.Thread.WorkerRunnableAdapter.html">GREUtils.Thread.WorkerRunnableAdapter</a></li>
	
	<li><a href="../symbols/GREUtils.XPCOM.html">GREUtils.XPCOM</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Namespace GREUtils.Dialog
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
			
				GREUtils.Dialog
A set of utility functions to create various types of dialogs and specialize windows.
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/_home_rack_workspace_greutils_dist_GREUtils.js.html">GREUtils.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class GREUtils.Dialog.">
				<caption>Namespace Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/GREUtils.Dialog.html#constructor">GREUtils.Dialog</a></b>
							</div>
							<div class="description">A set of utility functions to create various types of dialogs and specialize windows.</div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class GREUtils.Dialog.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.alert">alert</a></b>(dialogTitle, dialogText)
								</div>
								<div class="description">Displays an alert dialog.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.confirm">confirm</a></b>(dialogTitle, dialogText)
								</div>
								<div class="description">Displays a dialog prompting for user confirmation.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.getFilePicker">getFilePicker</a></b>()
								</div>
								<div class="description">Returns the XPCOM service that implements the nsIFilePicker interface.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.getMostRecentWindow">getMostRecentWindow</a></b>(windowName)
								</div>
								<div class="description">Returns a ChromeWindow object representing the most recent window of the
type given by "windowName".</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.getWindowArray">getWindowArray</a></b>(windowName)
								</div>
								<div class="description">Returns all open windows of a given type in an array of ChromeWindow objects.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.openDialog">openDialog</a></b>(aUrl, aName, aArguments, posX, posY, width, height)
								</div>
								<div class="description">Creates a top-level Dialog window.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.openFilePicker">openFilePicker</a></b>(sDir)
								</div>
								<div class="description">Shows a file picker dialog window to allow user to select a file.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.openFullScreen">openFullScreen</a></b>(aUrl, aName, aArguments)
								</div>
								<div class="description">Creates a top-level, full screen window.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.openModalDialog">openModalDialog</a></b>(aUrl, aName, aArguments, posX, posY, width, height)
								</div>
								<div class="description">Creates a top-level modal dialog window.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.openWindow">openWindow</a></b>(aParent, aUrl, aName, aFeatures, aArguments)
								</div>
								<div class="description">Creates a new window and automatically adds it to the watch list.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.prompt">prompt</a></b>(dialogTitle, dialogText, input)
								</div>
								<div class="description">Displays a dialog prompting for text input.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">GREUtils.Dialog.<b><a href="../symbols/GREUtils.Dialog.html#.select">select</a></b>(dialogTitle, dialogText, list, selected)
								</div>
								<div class="description">Displays a select dialog prompting user to make a selection.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Namespace Detail
				</div>
				
				<div class="fixedFont">
						<b>GREUtils.Dialog</b>
				</div>
				
				<div class="description">
					A set of utility functions to create various types of dialogs and specialize windows.
					
				</div>
				
				
				
				
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name=".alert"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{void}</span>
					<span class="light">GREUtils.Dialog.</span><b>alert</b>(dialogTitle, dialogText)
					
					</div>
					<div class="description">
						Displays an alert dialog.

Shows a top-level alert dialog with an OK button, a window title, and alert text.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>dialogTitle</b>
									
								</dt>
								<dd>This is the title of the alert dialog</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>dialogText</b>
									
								</dt>
								<dd>This is the alert text</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd></dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".confirm"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{Boolean}</span>
					<span class="light">GREUtils.Dialog.</span><b>confirm</b>(dialogTitle, dialogText)
					
					</div>
					<div class="description">
						Displays a dialog prompting for user confirmation.

Shows a top-level confirm dialog with OK and Cancel buttons, a window title, and text.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>dialogTitle</b>
									
								</dt>
								<dd>This is the title of the confirm dialog</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>dialogText</b>
									
								</dt>
								<dd>This is the confirm text</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> "true" if OK is clicked, and "false" if Cancel is clicked</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".getFilePicker"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{nsIFilePicker}</span>
					<span class="light">GREUtils.Dialog.</span><b>getFilePicker</b>()
					
					</div>
					<div class="description">
						Returns the XPCOM service that implements the nsIFilePicker interface.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{nsIFilePicker}</span> The nsIFilePicker service</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".getMostRecentWindow"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{ChromeWindow}</span>
					<span class="light">GREUtils.Dialog.</span><b>getMostRecentWindow</b>(windowName)
					
					</div>
					<div class="description">
						Returns a ChromeWindow object representing the most recent window of the
type given by "windowName".

If there are no windows open, null is returned.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>windowName</b>
									
								</dt>
								<dd>This is the type of window to return; null for all types</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Object}</span> The most recent window of the given type, or null if no such window is open</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".getWindowArray"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{ChromeWindow[]}</span>
					<span class="light">GREUtils.Dialog.</span><b>getWindowArray</b>(windowName)
					
					</div>
					<div class="description">
						Returns all open windows of a given type in an array of ChromeWindow objects.

Returns an empty array [] if there are no windows of the given type open.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>windowName</b>
									
								</dt>
								<dd>This is the type of window to enumerate; null for all types</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Object}</span> An array of ChromeWindow objects</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".openDialog"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{nsIDOMWindow}</span>
					<span class="light">GREUtils.Dialog.</span><b>openDialog</b>(aUrl, aName, aArguments, posX, posY, width, height)
					
					</div>
					<div class="description">
						Creates a top-level Dialog window. The dialog will be screen-centered by default.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aUrl</b>
									
								</dt>
								<dd>This is the URL to open in the newly created dialog window</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aName</b>
									
								</dt>
								<dd>This is the name to assign to the dialog window</dd>
							
								<dt>
									<span class="light fixedFont">{nsISupportsArray|nsIArray}</span> <b>aArguments</b>
									
								</dt>
								<dd>This is the list of extra argument(s) to be attached to the new dialog window as the window.arguments property. An nsISupportsArray will be unwound into multiple arguments (but not recursively!). Can be null, in which case the window.arguments property will not be set on the new dialog window. Can also be an nsIArray.</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>posX</b>
									
								</dt>
								<dd>This is the X screen coordinate of the dialog window</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>posY</b>
									
								</dt>
								<dd>This is the Y screen coordinate of the dialog window</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>width</b>
									
								</dt>
								<dd>This is the width of the dialog window</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>height</b>
									
								</dt>
								<dd>This is the height of the dialog window</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{nsIDOMWindow}</span> The new dialog window</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".openFilePicker"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">GREUtils.Dialog.</span><b>openFilePicker</b>(sDir)
					
					</div>
					<div class="description">
						Shows a file picker dialog window to allow user to select a file.

The directory that the file open/save dialog initially displays can be specified
through the "sDir" parameter. This parameter can be either a string containing the
directory path or a nsILocalFile object.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String|nsILocalFile}</span> <b>sDir</b>
									
								</dt>
								<dd>This is the directory that the file open/save dialog initially displays</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> The path of the selected file, or null if no file is selected</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".openFullScreen"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{nsIDOMWindow}</span>
					<span class="light">GREUtils.Dialog.</span><b>openFullScreen</b>(aUrl, aName, aArguments)
					
					</div>
					<div class="description">
						Creates a top-level, full screen window.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aUrl</b>
									
								</dt>
								<dd>This is the URL to open in the newly created modal dialog</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aName</b>
									
								</dt>
								<dd>This is the name to assign to the modal dialog</dd>
							
								<dt>
									<b>aArguments</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{nsIDOMWindow}</span> The new full-screen window</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".openModalDialog"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{nsIDOMWindow}</span>
					<span class="light">GREUtils.Dialog.</span><b>openModalDialog</b>(aUrl, aName, aArguments, posX, posY, width, height)
					
					</div>
					<div class="description">
						Creates a top-level modal dialog window. The dialog will be screen-centered by default.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aUrl</b>
									
								</dt>
								<dd>This is the URL to open in the newly created modal dialog</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aName</b>
									
								</dt>
								<dd>This is the name to assign to the modal dialog</dd>
							
								<dt>
									<span class="light fixedFont">{nsISupportsArray|nsIArray}</span> <b>aArguments</b>
									
								</dt>
								<dd>This is the list of extra argument(s) to be attached to the new modal dialog as the window.arguments property. An nsISupportsArray will be unwound into multiple arguments (but not recursively!). Can be null, in which case the window.arguments property will not be set on the new modal dialog. Can also be an nsIArray.</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>posX</b>
									
								</dt>
								<dd>This is the X screen coordinate of the modal dialog</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>posY</b>
									
								</dt>
								<dd>This is the Y screen coordinate of the modal dialog</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>width</b>
									
								</dt>
								<dd>This is the width of the modal dialog</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>height</b>
									
								</dt>
								<dd>This is the height of the modal dialog</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{nsIDOMWindow}</span> The new modal dialog</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".openWindow"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{nsIDOMWindow}</span>
					<span class="light">GREUtils.Dialog.</span><b>openWindow</b>(aParent, aUrl, aName, aFeatures, aArguments)
					
					</div>
					<div class="description">
						Creates a new window and automatically adds it to the watch list.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{nsIDOMWindow}</span> <b>aParent</b>
									
								</dt>
								<dd>This is the parent window, if any, or null if no parent window</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aUrl</b>
									
								</dt>
								<dd>This is the URL to open in the newly created window. The URL must be appropriately escaped, and can be null</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aName</b>
									
								</dt>
								<dd>This is the name to assign to the newly created window. Defaults to "_blank" If a window with this name already exists, that window may be returned instead</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>aFeatures</b>
									
								</dt>
								<dd>This is the window features to apply to the new window. Defaults to "chrome,centerscreen"</dd>
							
								<dt>
									<span class="light fixedFont">{nsISupportsArray|nsIArray}</span> <b>aArguments</b>
									
								</dt>
								<dd>This is the list of extra argument(s) to be attached to the new window as the window.arguments property. An nsISupportsArray will be unwound into multiple arguments (but not recursively!). Can be null, in which case the window.arguments property will not be set on the new window. Can also be an nsIArray.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{nsIDOMWindow}</span> The new window</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".prompt"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{Boolean}</span>
					<span class="light">GREUtils.Dialog.</span><b>prompt</b>(dialogTitle, dialogText, input)
					
					</div>
					<div class="description">
						Displays a dialog prompting for text input.

Shows a top-level prompt dialog with an edit field, OK and Cancel buttons, a window title,
and prompt text.

The edit field will have an initial value taken from the "value" property of the object
given by the "input" parameter. If the user clicks OK, the value from the edit field
is stored in the "value" property of the "input" object before returning.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>dialogTitle</b>
									
								</dt>
								<dd>This is the title of the prompt dialog</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>dialogText</b>
									
								</dt>
								<dd>This is the prompt text</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>input</b>
									
								</dt>
								<dd>This object holds the value of the edit field</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> "true" if OK is clicked, and "false" if Cancel is clicked</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".select"> </a>
					<div class="fixedFont">&lt;static&gt; 
					
					<span class="light">{Boolean}</span>
					<span class="light">GREUtils.Dialog.</span><b>select</b>(dialogTitle, dialogText, list, selected)
					
					</div>
					<div class="description">
						Displays a select dialog prompting user to make a selection.

Shows a top-level select dialog with a list box of strings, OK and Cancel buttons,
a window title, and prompt text.

If the user clicks OK, the "value" property of the "selected" object will be set
to the index of the the selected item before returning.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>dialogTitle</b>
									
								</dt>
								<dd>This is the title of the select dialog</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>dialogText</b>
									
								</dt>
								<dd>This is the prompt text</dd>
							
								<dt>
									<span class="light fixedFont">{String[]}</span> <b>list</b>
									
								</dt>
								<dd>This is an array of strings for selection</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>selected</b>
									
								</dt>
								<dd>This object holds the index of the selected item</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> "true" if OK is clicked, and "false" if Cancel is clicked</dd>
							
							</dl>
						
						
						

					
				
			
			
			<hr />
		</div>
		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.0.1 on Thu Aug 28 2008 13:30:54 GMT+0800 (CST)
		</div>
	</body>
</html>
